<include file="Public/header" />
<include file="Public/nav" />
<!-- 导航-->
<div class="row">
    <div class="col-xs-12" style="text-align: center; padding-top:10px;">
        <div class="btn-group btn-group-justified" role="group" aria-label="Justified button group">
            <a href="{:U('View/index');}" class="btn btn-default" id="myactivc" role="button">商品浏览</a>
            <a href="{:U('List/index');}" class="btn btn-default"   role="button">排行榜</a>
            <a href="{:U('Search/index');}" class="btn btn-default" role="button">搜索</a>
        </div>
    </div>
</div>

<!-- 筛选 -->
<form action="{:U('View/view');}" method="post">
    <div class="row" style="padding-top:10px; width: 99%">
            <div class="col-xs-5" style="padding-right:inherit; text-align:center;">
                <select class="form-control" name="school_id">
                    <option value="0">全部学校</option>
                    <volist id="vo" name="school">
                        <option value="{$vo.id}">{$vo.school_name}</option>
                    </volist>
                </select>
            </div>
            <div class="col-xs-5" style="margin-right: inherit; padding-left: 0.1em; padding-right: inherit">
                <select class="form-control" name="goods_id">
                    <option value="0">全部类型</option>
                    <volist id="vo" name="goods">
                        <option value="{$vo.id}">{$vo.type}</option>
                    </volist>
                </select>
            </div>
            <div class="col-xs-1"style="padding-right:inherit;margin-left: 0.1em;">
                <input type="submit" class="btn btn-warning" value="确定">
            </div>

    </div>

    <!-- 排序方式 -->
    <div class="row" style="padding-top:10px;padding-bottom:10px;">
        <div class="col-xs-1"> </div>

        <div class="col-xs-5">
            <div class="radio">
                <label>
                    <input type="radio" name="order_id" value="0" checked>
                    综合排序
                </label>
            </div>
        </div>

        <div class="col-xs-5">
            <div class="radio">
                <label>
                    <input type="radio" name="order_id" value="1">
                    点击量排序
                </label>
            </div>
        </div>

        <div class="col-xs-1">	</div>

    </div>
</form>
    <!-- 店铺展示 -->
    <volist name="store" id="vo">
        <div class="row" style="margin: inherit;margin-bottom: 10px;">
            <div class="col-xs-12 ">
                <a href="{$vo.link}">
                <div class="row" style="background: white;padding-top: 1em;display: flex;border-radius: 4px 4px 0 0;">
                    <div class="col-xs-4" style="width: 50%;margin: auto;">
                        <img src="{$vo.show_pic}" class="img-responsive" alt="Responsive image">
                    </div>
                    <div class="col-xs-8 " style="padding-left:inherit;width: 50%;">
                        <div class="row">
                            <div class="col-xs-12" style="color: #333333"><h4>{$vo.store_name}</h4></div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12" style="color: #666666"><p>商品: <php>foreach($vo['goods_type'] as $v){echo $v['type'].'  ';}</php></p></div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12" style="color: #666666"><p>学校: {$vo['school_name']}</p></div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12" style="color: #666666"><p>标签: <php>foreach($vo['tags'] as $v){echo $v['tag_name'].'  ';}</php></p></div>
                        </div>
                        <div class="row">
                            <div class="col-xs-12" style="color: #666666">卖家: {$vo.nickname}</div>
                        </div>
                    </div>
                </div>


                <div class="row" style="background: white;padding-bottom: 1em;border-radius: 0 0 4px 4px;">
                    <div class="col-xs-12" style="padding-top: 1em;">
                        <a href="{:U('Person/index')}?person_id={$vo.person_id}"><button class="btn btn-warning">查看卖家风采</button></a>
                    </div>
                </div>
                </a>
            </div>
        </div>
    </volist>

    <div id="more" class="row" style="background: white;padding-bottom: 1em;margin-left: inherit;margin-right: inherit;text-align: center;border-radius: 4px 4px 0 0;"><div class="col-xs-12 btn" style="padding-top: 1em;">点击加载更多</div></div>
<include file="Public/footer" />